import asyncio

async def fetch_data():
    print("开始获取数据")
    await asyncio.sleep(2)  # 模拟异步操作
    print("数据获取完成")
    return "data"

async def main():
    print("启动")
    result = await fetch_data()
    print("结果:", result)

# 运行
_thread = asyncio.get_event_loop()
print("当前线程:", _thread)
print("开始运行")
asyncio.run(main())
print("运行结束")
print("当前线程:", _thread)